package com.itqf.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itqf.entity.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2021/1/27
 * @Time: 下午2:49
 */
public interface SysUserMapper extends BaseMapper<SysUser> {

    //因为多表操作 mybatis-plus不提供方法处理
    //我们就得自己写sql
    //查询用户角色
    public List<String> findRoles(@Param("uid") int uid);
    //查询用户权限
    public List<String> findPerms(@Param("uid") int uid);



}
